package edu.sctu.zhoumengxue.day201506.day20150628.test;

/**使用线程5秒之后获取网页的数据
 * Created by user12 on 2015/6/28.
 */
public class ThreadRun implements Runnable {
    @Override
    public void run() {

        URLPath urlPath = new URLPath();
        URLPost post = new URLPost();

        try {

            Thread.sleep(5000);
            System.out.println( post.getURL(urlPath.URLpath));

        } catch (InterruptedException e) {
            e.printStackTrace();
        }

    }
}
